Wiki
Clone wikicosmosis / Manual Install
On Linux, where available, we strongly recommend you use the automatic bootstrap installation script.
The things it installs are kept neatly in a single directory and will not mess up your current installation of anything. Even if you're an expert it really is much easier.
1 General Dependencies
CosmoSIS requires recent-ish C and C++ compilers (GCC 4.8 and above will work, as will recent versions of the native clang on MacOS).
CosmoSIS requires:
- python 2.7 or python 3.6 or above
- Reasonably recent C/C++/Fortran compilers (GCC 4.8 and above are fine, as are clang/clang++)
- git
and the following libraries - gsl 1.16 or above - cfitsio 3.30 or above - fftw 3 - lapack (except on a mac, where it is alreay included)
On Linux you can get them through your package manager, like apt or yum.
Python Dependencies
Python dependencies can be installed using pip install -r config/requirements.txt
Again, you may have to add --user
if you have a permissions problem.
To sample in parallel you will need an MPI installation. On most clusters and supercomputers this is pre-installed. You need to make sure you have mpi4py
installed as well, using the same MPI and python:
pip install --no-binary --no-wheel mpi4py
Again, you may have to add --user
2 Download
Download CosmoSIS and the standard library like this (will get you v1.0; leave out the checkouts for bleeding edge version):
#!bash git clone http://bitbucket.org/joezuntz/cosmosis cd cosmosis git checkout git clone http://bitbucket.org/joezuntz/cosmosis-standard-library cd ..
3 Setup script
From the cosmosis directory make a copy of the manual setup script:
cp config/manual-install-setup setup-my-cosmosis
Edit the new file setup-my-cosmosis and replace all the places where it says /path/to/XXX in this file with correct paths to the directory containing XXX.
4 Build
Source the setup script and make:
source setup-my-cosmosis
make
If you get any errors please send your setup-my-cosmosis script and the complete output of "make" to the cosmosis developers. You can do this via the "Issues" tab to the right.
#5 Usage
If you quit your terminal shell and start a new one then you need to repeat this step:
source setup-my-cosmosis
Then test your install is working by running Demo 1.
External Data Sets
For some use cases you may also want to install Planck or WMAP data:
- planck data (optional; for some demos and for using Planck likelihoods. Go to the "cosmology" link)
- wmap data (optional; for using WMAP likelihoods)
Updated